<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-tTaskOrder-edit" th:object="${tTaskOrder}">
            <input id="id" name="id" th:field="*{id}"  type="hidden">
			<div class="form-group">	
				<label class="col-sm-3 control-label">计划编号：</label>
				<div class="col-sm-8">
					<input id="plancode" name="plancode" th:field="*{plancode}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">提交人：</label>
				<div class="col-sm-8">
					<input id="operator" name="operator" th:field="*{operator}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">工位编号：</label>
				<div class="col-sm-8">
					<input id="stationcode" name="stationcode" th:field="*{stationcode}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">工位名称：</label>
				<div class="col-sm-8">
					<input id="stationname" name="stationname" th:field="*{stationname}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">工单状态（0：运行中；1：已完成；2：作废；3：挂起；4：未下发；5：等待；6：待激活-压装工位独有状态）：</label>
				<div class="col-sm-8">
					<input id="state" name="state" th:field="*{state}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">工单下发时间：</label>
				<div class="col-sm-8">
					<input id="receivetime" name="receivetime" th:field="*{receivetime}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">工单开始时间：</label>
				<div class="col-sm-8">
					<input id="starttime" name="starttime" th:field="*{starttime}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">工单结束时间：</label>
				<div class="col-sm-8">
					<input id="finishtime" name="finishtime" th:field="*{finishtime}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">产品ID：</label>
				<div class="col-sm-8">
					<input id="productid" name="productid" th:field="*{productid}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">工单编号：</label>
				<div class="col-sm-8">
					<input id="ordercode" name="ordercode" th:field="*{ordercode}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">具体的步骤（可参考本工位的绿灯数量）：</label>
				<div class="col-sm-8">
					<input id="step" name="step" th:field="*{step}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">预计开始时间：</label>
				<div class="col-sm-8">
					<input id="beginTime" name="beginTime" th:field="*{beginTime}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">预计结束时间：</label>
				<div class="col-sm-8">
					<input id="endTime" name="endTime" th:field="*{endTime}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">预计加工时长：</label>
				<div class="col-sm-8">
					<input id="workTime" name="workTime" th:field="*{workTime}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">提交人2：</label>
				<div class="col-sm-8">
					<input id="operator2" name="operator2" th:field="*{operator2}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">提交人3：</label>
				<div class="col-sm-8">
					<input id="operator3" name="operator3" th:field="*{operator3}" class="form-control" type="text">
				</div>
			</div>
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "system/tTaskOrder";
		$("#form-tTaskOrder-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			}
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-tTaskOrder-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
